package com.shangxian.giveithome.mapper;


import com.shangxian.giveithome.entity.Img;
import com.shangxian.giveithome.entity.RqCode;
import com.shangxian.giveithome.mapper.utils.More;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

@Mapper
public interface ImgFeiMapper {
    List<Img> queryAsylumImgS(@Param("ids") List<Long> ids);

    List<Img> queryByImgIds(@Param("imgIds") List<Long> imgIds);
    //查询多个对象的图片的地址用以删除
    @SelectProvider(type = More.class,method = "more")
    List<Img> queryByImgIds1(@Param("imgIds") List<Long> imgIds);

    List<Img> queryImages(Long imgId);

    RqCode queryRqCode(Long acId);

    void saveRq(RqCode rqCode);

    Integer deleteRqCode(Long id);

    RqCode queryRqCodeMe(Long meId);

    void saveRqMe(RqCode rqCode);
}
